package cn.kgc.service.administrative;

import cn.kgc.dao.administrative.nbw_meetingYDGLDao;
import cn.kgc.pojo.Dict;
import cn.kgc.pojo.Meetingreserve;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class nbw_meetingYDGLServiceimpl implements nbw_meetingYDGLService{

    @Resource
    private nbw_meetingYDGLDao ydgl;

    @Override
    public List<Dict> selMeetingtypeId() {
        return ydgl.selMeetingtypeId();
    }

    @Override
    public List<Meetingreserve> selMeetingreserve(Integer m_id, Integer u_id, String endtime, String use) {
        return ydgl.selMeetingreserve(m_id,u_id,endtime,use);
    }

    @Override
    public boolean del(Integer id) {
        if (ydgl.del(id)>-1){
            return true;
        }else {
            return false;
        }
    }
}
